<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/2/8
 * Time: 16:34
 */

namespace Home\Controller;


class CultureController extends HomeController
{
    public function index(){
        $cid=I("get.cid",1,"int");
        $document=D("Document");
        $list=$document->lists($cid);
        //print_r($list);exit;
        $this->assign("list",$list);
        $id=I("get.id",$list[0]['id'],"int");
        //echo $id;exit;
        $data=$document->detail($id);
        $this->assign("data",$data);
        $this->assign("meta_title","企业文化");
        $this->display();
    }

}